package lunadevs.luna.module.exploits;
 
import org.lwjgl.input.Keyboard;

import com.darkmagician6.eventapi.EventTarget;

import lunadevs.luna.category.Category;
import lunadevs.luna.events.MoveEvent;
import lunadevs.luna.events.PacketSendEvent;
import lunadevs.luna.events.TickEvent;
import lunadevs.luna.events.UpdateEvent;
import lunadevs.luna.main.Luna;
import lunadevs.luna.module.Module;
import lunadevs.luna.utils.ClientUtils;
import lunadevs.luna.utils.MathUtils;
import lunadevs.luna.utils.MoveUtils;
import lunadevs.luna.utils.TimeHelper;
import lunadevs.luna.utils.Timer;
import net.minecraft.client.Minecraft;
import net.minecraft.network.play.client.C03PacketPlayer;
 
public class Spartan extends Module{
 
    int counter;
    Timer cool = new Timer();
    int clock;
    TimeHelper time;
   
    public Spartan() {
        super("Spartan", Keyboard.KEY_NONE, Category.EXPLOITS, true);
        this.time = new TimeHelper();
    }
//    @Override
//    public void onUpdate() {
//        if (!this.isEnabled) return;
        
        @Override
    	public void onUpdate() {
        	if(!this.isEnabled)
   			 return;
     
   }
        @EventTarget
		  public void onMove(MoveEvent event)
		  {
        	net.minecraft.util.Timer.timerSpeed = 10f;
         	  if(cool.delay(1)){
         		 //net.minecraft.util.Timer.timerSpeed = 1;
         	  }
         	 if(cool.delay(2)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(3)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(4)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(5)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(6)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(7)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(8)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(9)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(10)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(11)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(12)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(13)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(14)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(15)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(16)){
         		 net.minecraft.util.Timer.timerSpeed = 7;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(17)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(18)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(19)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(20)){
         		 //net.minecraft.util.Timer.timerSpeed = 2;
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(21)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(22)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(23)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(24)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(25)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(26)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(27)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(28)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(29)){
         		 event.setCancelled(true);
         	 }
         	 if(cool.delay(30)){
         		 event.setCancelled(true);
         		 cool.reset();
         	 }
		 
		  }
    @Override
    public void onEnable() {
    }
    
    
   @Override
    public void onDisable() {
        super.onDisable();
    }
   
    @Override
    public String getValue() {
        return "Skyblocky";
    }
 
}